package com.gexin.model.order;

import com.gexin.model.order.base.BaseOrderRefund;

/**
 * 业务名称:  t_order_refund(订单退款记录) 
 */
@SuppressWarnings("serial")
public class OrderRefund extends BaseOrderRefund<OrderRefund> {
	public static final OrderRefund dao = new OrderRefund();

	/**
	 * 根据订单ID查询退款订单是否含运费
	 * @param isAddfreight
	 * @param orderId
	 * @return
	 */
	public OrderRefund findByOrderIsAddFreight(Integer isAddfreight, String orderId) {
		return dao.findFirst("select * from t_order_refund where is_add_freight=? and order_id=?",isAddfreight,orderId);
	}

	/**
	 * 根据ItemId查询
	 * @param itemId
	 * @return
	 */
	public OrderRefund findByItemId(Integer itemId) {
		return dao.findFirst("select * from t_order_refund where item_id=?",itemId);
	}

}
